package cn.javastudy.design._2_结构型模式._适配器模式._对象适配器模式;

import cn.javastudy.design._2_结构型模式._适配器模式._对象适配器模式.impl.SDCardImpl;
import cn.javastudy.design._2_结构型模式._适配器模式._对象适配器模式.impl.TFCardImpl;

/**
 * 客户端
 *
 * @author sumou
 * @date 2025/01/24
 */
public class Client {

    public static void main(String[] args) {
        Computer computer = new Computer();
        SDAdapterTF adapter = new SDAdapterTF(new TFCardImpl());
        computer.readSD(adapter);
        SDCard sdCard = new SDCardImpl();
        computer.readSD(sdCard);
    }

}
